#
# Copyright Laureano Arcanio 2008
# Released under the MIT License
# laureano.arcanio@gmail.com
#

__all__ = ['LinkTags']

from lymon.core import Document

class LinkTags(object):
	"""
	Edits the documents and Adds Href to edit the content. 
	"""
	def __init__(self, document=None):
		if document:
			self.document = document
			self.edit(document = document)
			
	def edit(self, document=None):		
		if document:
			link = '<a href"#"> %s <a>'
			context = document.context[:]
			for tag in context:
				if tag['html']:
					tag['html'] = '<a href"#"> %s <a>' % tag['html']
			new_doc = Document()
			new_doc.context = context
			return new_doc
				
	
